//-----------------------------------------------------------------------
// <copyright file="a_StateService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_StateService
    {
        #region a_State

        public static void Createa_State(a_State a_State)
        {            
            try
            {
                a_StateDAO a_StateDAO = new a_StateDAO();
                a_StateDAO.Createa_State(a_State);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_State(a_State a_State)
        {            
            try
            {
                a_StateDAO a_StateDAO = new a_StateDAO();
                a_StateDAO.Updatea_State(a_State);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_State(int stateID)
        {            
            try
            {
                a_StateDAO a_StateDAO = new a_StateDAO();
                a_StateDAO.Deletea_State(stateID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_State Geta_State(int stateID)
        {            
            try
            {
                a_StateDAO a_StateDAO = new a_StateDAO();
                return a_StateDAO.Geta_State(stateID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_StateCollection Geta_StateList(a_StateColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_StateDAO a_StateDAO = new a_StateDAO();
                return a_StateDAO.Geta_StateList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_StateCollection Geta_StateList(a_StateColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_StateDAO a_StateDAO = new a_StateDAO();
                return a_StateDAO.Geta_StateList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}